package vn.com.aptech.msh.utils;

import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;

/**
 *
 * @author trietto
 */
@Named("applicationAttributes")
@ApplicationScoped
public class ApplicationAttributes implements Serializable {

    private int views;

    @PostConstruct
    public void init() {
        views = 0;
    }

    public void incViews() {
        views++;
    }

    public int getViews() {
        return views;
    }

    public void setViews(int views) {
        this.views = views;
    }
}
